package com.pvdnc.tapkit.chat.chat.client;

import com.pvdnc.nsocket.client.SimpleClientHandler;
import com.pvdnc.tapkit.chat.chat.ChatClient;
import com.pvdnc.tapkit.chat.chat.packet.GetFriendResponse;

import io.netty.channel.ChannelHandlerContext;

public class OnFriendResponse extends SimpleClientHandler<ChatClient, GetFriendResponse> {
    public OnFriendResponse(ChatClient client) {
        super(client, GetFriendResponse.COMMAND);
    }

    @Override
    public void onReceived(ChannelHandlerContext ctx, GetFriendResponse msg) {
        FriendReceiver.broadcast(msg.mClientInfoMap);
    }
}
